package com.yun.zf.common.admin.model.activity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class ActivityAddMo {

    @ApiModelProperty(value = "城市代码，指定活动城市，-1代表全部")
    @NotNull(message = "城市代码不能为空")
    private Long cityCode;
    @ApiModelProperty(value = "门店id")
    private Long dept3Id;
    @ApiModelProperty(value = "活动名称")
    @NotBlank(message = "活动名称不能为空")
    private String title;
    @ApiModelProperty(value = "副标题")
    private String subTitle;
    @ApiModelProperty(value = "活动海报地址")
    private String poster;

    @ApiModelProperty(value = "活动状态on上线，off 下线")
    @NotBlank(message = "活动状态不能为空")
    private String status;

    @ApiModelProperty(value = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotBlank(message = "开始时间不能为空")
    private Date startTime;

    @ApiModelProperty(value = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotBlank(message = "结束时间不能为空")
    private Date endTime;
}
